<extend name="Public/base" />
<block name="style">
    <link rel="stylesheet" href="__PUBLIC__/plugins/datepicker/datepicker3.css">
    <style type="text/css">
        tr td:first-child{ padding-top: 20px}
    </style>

</block><!-- 自定义STYLE -->
<block name="content">
    <div class="box box-default color-palette-box box-table-self">
        <div class="box-header with-border">
            <h3 class="box-title"><i class="fa fa-user"></i> 我的信息</h3>
        </div>
        <div class="box-body">
            <div class="row">
                <form action="__SELF__" METHOD="POST" class="ajaxForm">


                <table class="table table-bordered">
                    <tbody>
                    <tr>
                        <td width="150px">账号:</td>
                        <td>
                            {$info.username}
                            <input type="hidden" name="id" value="{$info.id}" />
                        </td>
                    </tr>
                    <tr>
                        <td>最后登录时间:</td>
                        <td>
                            {$info.last_login_time|date='Y-m-d H:i:s',###}
                        </td>
                    </tr>
                    <tr>
                        <td>最后登录IP:</td>
                        <td>
                            {$info.last_login_ip}
                        </td>
                    </tr>
                    <tr>
                        <td>密码:</td>
                        <td>
                            <input type="password" class="form-control" name="password" datatype="require" ignore="ignore" tip="留空不修改密码">
                        </td>
                    </tr>
                    <tr>
                        <td>姓名:</td>
                        <td>
                            <input type="text" class="form-control" name="realname" datatype="zh" tip="请填写中文姓名" value="{$info.realname}">
                        </td>
                    </tr>
                    <tr>
                        <td>手机:</td>
                        <td>
                            <input type="text" class="form-control" name="mobile" datatype="mobile" tip="请填写11位手机号码" value="{$info.mobile}">
                        </td>
                    </tr>
                    <tr>
                        <td>邮箱:</td>
                        <td>
                            <div class="input-group date">
                                <div class="input-group-addon">
                                    <i class="fa fa-envelope"></i>
                                </div>
                                <input type="text" class="form-control pull-right"  name="email" value="{$info.email}">
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>生日:</td>
                        <td>
                            <div class="input-group date">
                                <div class="input-group-addon">
                                    <i class="fa fa-calendar"></i>
                                </div>
                                <input type="text" name="birthday" class="form-control pull-right" id="datepicker" value="{$info.birthday}">
                            </div>
                        </td>
                    </tr>
                    <tr><td colspan="2"><input type="submit" class="btn btn-info btn-block" value="提交"></td></tr>
                    </tbody></table>
                </form>
            </div>
            <!-- /.row -->

        </div>
        <!-- /.box-body -->
    </div>
</block>

<block name="javascript">
    <script src="__PUBLIC__/plugins/datepicker/bootstrap-datepicker.js"></script>
    <script>
        //Date picker
        $('#datepicker').datepicker({
            autoclose: true,
            format: 'yyyy-mm-dd'
        });
    </script>
</block>

